import request from '@/utils/request'

// 查询栏目导航列表
export function listMhColumnNavigation(query) {
  return request({
    url: '/system/mhColumnNavigation/list',
    method: 'get',
    params: query
  })
}
// 查询栏目导航列表
export function listAllMhColumnNavigation(query) {
  return request({
    url: '/system/mhColumnNavigation/listAll',
    method: 'get',
    params: query
  })
}
// 查询栏目导航详细
export function getMhColumnNavigation(id) {
  return request({
    url: '/system/mhColumnNavigation/' + id,
    method: 'get'
  })
}

// 新增栏目导航
export function addMhColumnNavigation(data) {
  return request({
    url: '/system/mhColumnNavigation',
    method: 'post',
    data: data
  })
}

// 修改栏目导航
export function updateMhColumnNavigation(data) {
  return request({
    url: '/system/mhColumnNavigation',
    method: 'put',
    data: data
  })
}

// 删除栏目导航
export function delMhColumnNavigation(id) {
  return request({
    url: '/system/mhColumnNavigation/' + id,
    method: 'delete'
  })
}
